<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>My Shopping Cart</title>
<style type="text/css">
	td>p>img {
		height: 100px;
	}
</style>
</head>
<body>

	<a href="books">&lt;&lt; Back</a>
	<table>
		<c:forEach items="${ books }" var="b">
			<tr>
				<td><p><img src="${ b.key.imgPath }"/></p><p>${ b.key.bname }</p></td>
				<td>${ b.value }</td>
			</tr>
		</c:forEach>
	</table>
	<p>
		<form action="buy.action" method="post">
			<input type="submit" value="Purchase"/>
		</form>
	</p>

</body>
</html>